package org.cy.spring.learning.rpc.consumer;

import org.cy.spring.learning.rpc.client.ClientRemoteProxyFactory;
import org.cy.spring.learning.rpc.provider.PersonService;

/**
 * create date: 2019/10/23 11:36
 *
 * @author cao.yong
 */
public class CallClient {

    public static void main(String[] args) {
        ClientRemoteProxyFactory<PersonService> factory = new ClientRemoteProxyFactory<>(PersonService.class);
        PersonService service = factory.getRemoteService();
        System.out.println(service.talking("Jack", "Hello"));
    }
}
